import * as React from 'react';
import { Link } from 'react-router-dom';
import PageLayout from '../../page-layout';
import DocumentTitle from 'react-document-title';

export interface HomeProps {}

interface PageMeta {
  title: string;
}

class Home extends React.Component<HomeProps, any> {
  static propTypes = {};
  static defaultProps = {};
  private meta: PageMeta;

  constructor(props) {
    super(props);
    this.meta = this.getPageMeta();
  }

  getPageMeta() {
    return {
      title: '微风测试中心-首页',
    };
  }

  render() {
    const { title } = this.meta;
    return (
      <PageLayout>
        <DocumentTitle title={title} />
        <div>
          <div>
            <Link to="/runner">正则测试页</Link>
          </div>
        </div>
      </PageLayout>
    );
  }
}

export default Home;
